#!/bin/bash

version=$(dectl version | sed '/^$/d' | awk '{print $4}' | awk -F '.' '{print $1}'|head -1)
if [[ $version == "v1" ]]; then
    bash DE_Check_v1.sh  
elif [[ $version == "v2" ]]; then
    bash DE_Check_v2.sh  2>&1
fi